import * as request from "@/utils/request"

const API_PREFIX = "/Auth"

/**
 * 用户登录
 */
export function userLogin(params: UserLoginRequest) {
  return request.post<UserLoginResponse>({
    url: API_PREFIX + "/Login",
    data: params
  })
}

/**
 * 用户登出
 */
export function userLoginOut() {
  return request.post<boolean>({
    url: API_PREFIX + "/LoginOut"
  })
}
